package com.item.service;

import com.item.dao.RecommendMediaMapper;
import com.item.dao.model.RecommendMedia;
import com.item.dao.model.RecommendMediaExample;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RecommendMediaService {
    @Autowired
    private RecommendMediaMapper recommendMediaMapper;

    private static final Logger logger = Logger.getLogger(RecommendMediaService.class);

    public int countByExample(RecommendMediaExample example) {
        return this.recommendMediaMapper.countByExample(example);
    }

    public RecommendMedia selectByPrimaryKey(String id) {
        return this.recommendMediaMapper.selectByPrimaryKey(id);
    }

    public List<RecommendMedia> selectByExample(RecommendMediaExample example) {
        return this.recommendMediaMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.recommendMediaMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(RecommendMedia record) {
        return this.recommendMediaMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(RecommendMedia record) {
        return this.recommendMediaMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(RecommendMediaExample example) {
        return this.recommendMediaMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(RecommendMedia record, RecommendMediaExample example) {
        return this.recommendMediaMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(RecommendMedia record, RecommendMediaExample example) {
        return this.recommendMediaMapper.updateByExample(record, example);
    }

    public int insert(RecommendMedia record) {
        return this.recommendMediaMapper.insert(record);
    }

    public int insertSelective(RecommendMedia record) {
        return this.recommendMediaMapper.insertSelective(record);
    }
}